# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xtables-addons
pkgver=3.9
pkgrel=0
pkgdesc="Netfilter userspace extensions for iptables"
url="http://xtables-addons.sourceforge.net/"
arch="all"
license="GPL-2.0-only"
makedepends="iptables-dev bash coreutils"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/xtables-addons/$pkgver/xtables-addons-$pkgver.tar.xz"
options="!check" # Package has no test suite

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--without-kbuild
	make CC="${CC-gcc}" kbuilddir=
}

package() {
	make builddir= DESTDIR="$pkgdir" install
}

sha512sums="ec7d2ec97c433eb94b893aedfd346393986ef140d7ff95cd8be070cfa397efd87df7d73d36359b81c80618eb8575282a1ea8624c3bf182ddd60d8975f58579b5  xtables-addons-3.9.tar.xz"
